//
//  GroupHeaderView.h
//  Guazi
//
//  Created by koolearn on 11-5-8.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FriendGroup.h"
#import "PopMenuViewController.h"
#import "WEPopoverController.h"


@interface GroupHeaderView : UIControl <WEPopoverControllerDelegate, UIPopoverControllerDelegate, PopMenuContentDelegate, UIActionSheetDelegate> {
	FriendGroup* group;
	NSInteger section;
	
	UIImageView* openFlagImage;
    UIButton* menuButton;
    
    WEPopoverController* popoverController;

    BOOL canTwitter;
    BOOL canDM;
    BOOL canMessage;
    BOOL canEdit;
    BOOL canDelete;
    BOOL canMember;
}


@property (nonatomic, retain) FriendGroup* group;
@property (nonatomic, assign) NSInteger section;
@property (nonatomic, retain) UIImageView* openFlagImage;
@property (nonatomic, retain) WEPopoverController* popoverController;

- (id)initWithFrame:(CGRect)frame group:(FriendGroup*)agroup section:(NSInteger)sec;

@end
